//
//  EVAHeadView.m
//  -15-11-16-上拉模糊
//
//  Created by lyh on 15/11/16.
//  Copyright © 2015年 lyh. All rights reserved.
//

#import "EVAHeadView.h"

@implementation EVAHeadView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _leftBtn=[[UIButton alloc] initWithFrame:CGRectMake(15, 15, 60, 35)];
        [_leftBtn setShowsTouchWhenHighlighted:YES];
        [_leftBtn setTitle:@"功能" forState: UIControlStateNormal];
        [_leftBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:_leftBtn];
        
        _rightBtn=[[UIButton alloc] initWithFrame:CGRectMake((frame.size.width - 60 - 15), 15, 60, 35)];
        [_rightBtn setShowsTouchWhenHighlighted:YES];
        [_rightBtn setTitle:@"设置" forState: UIControlStateNormal];
        [_rightBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:_rightBtn];
        
        _middleBtn = [[UIButton alloc] initWithFrame:CGRectMake((frame.size.width-60.0f)/2.0f, 15, 60, 35)];
        [_middleBtn setShowsTouchWhenHighlighted:YES];
        [_middleBtn setTitle:@"词" forState: UIControlStateNormal];
        [_middleBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:_middleBtn];
    }
    return self;
}






/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
